<div class="avatar" data-id="<?php echo $user['id']; ?>">
	<a data-to="ajax" href="profile/view/<?php echo $user['link']; ?>" title="<?php echo $user['name']; ?> - Offline">
		<div class="status offline"></div>
		<img onerror="$(this).hide(); $(this).prev().css({background: '#eee'});"
			src="http://www.gravatar.com/avatar/<?php echo $user['avatar']; ?>?s=<?php echo $size; ?>&amp;d=mm"
			width="<?php echo $size; ?>" height="<?php echo $size; ?>"
		alt="Avatar" />
	</a>
</div>